import request from "@/utils/request";
// 添加作业
export function addHomework(id) {
  return request({
    url: "/manager/courseTask/addHomework/" + id,
    method: "post",
  });
}
// 删除作业
export function delHomework(id) {
  return request({
    url: "/manager/courseTask/delHomework/" + id,
    method: "post",
  });
}
// 添加线上考核
export function addExam(id) {
  return request({
    url: "/manager/courseTask/addOnlineExam/" + id,
    method: "post",
  });
}
// 添加线下考核
export function addOfflineExam(id) {
  return request({
    url: "/manager/courseTask/addOfflineExam/" + id,
    method: "post",
  });
}
// 添加练习
export function addPractice(id) {
  return request({
    url: "/manager/courseTask/addPractice/" + id,
    method: "post",
  });
}
// 删除线下考核
export function delOfflineExam(id) {
  return request({
    url: "/manager/courseTask/delOfflineExam/" + id,
    method: "post",
  });
}
// 删除线上考核
export function delOnlineExam(id) {
  return request({
    url: "/manager/courseTask/delOnlineExam/" + id,
    method: "post",
  });
}
// 删除练习
export function delPractice(id) {
  return request({
    url: "/manager/courseTask/delPractice/" + id,
    method: "post",
  });
}
